﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Checkout.aspx.cs" Inherits="Projet_Final_ASP.Checkout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script type="text/javascript">
          function checkDate(sender, args) {
              if (sender._selectedDate < new Date()) {
                  alert("Vous devez selectionnez une date a partir de demain");
                  sender._selectedDate = new Date();
                  // set the date back to the current date
                  sender._textbox.set_Value(sender._selectedDate.format(sender._format))
                }
          }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <table style="text-align:right;">
            <tr>
                <td>Prenom: <asp:TextBox ID="Prenom" runat="server"></asp:TextBox> </td>
            </tr>
            <tr>
                <td>Nom: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td>
                <td><!-- Code pour AJAX Calendar avec le Register en haut :D -->

                    Date de livraison voulue:

                    <asp:TextBox runat="server" ID="Date5"/>
                    <asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/Images/button_calendar.png" 
                        AlternateText="Click to show calendar" />
                    <asp:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="Date5" 
                        PopupButtonID="Image2" OnClientDateSelectionChanged="checkDate" />
                </td>
            </tr>
               <tr>
               <td>Adresse: <asp:TextBox ID="txtAdresse" runat="server"></asp:TextBox> </td>
               <td align="left">
                    Type de Carte:
                    <asp:RadioButtonList ID="rbtTypeCredit" runat="server">
                        <asp:ListItem>Visa</asp:ListItem>
                        <asp:ListItem>MasterCard</asp:ListItem>
                        <asp:ListItem>AMEX</asp:ListItem>
                    </asp:RadioButtonList>
                    <td align="left">
                    Langue de correspondance:
                        <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                            <asp:ListItem>Anglais</asp:ListItem>
                            <asp:ListItem>Francais</asp:ListItem>
                            <asp:ListItem>Espagnol</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                    
                </td>                
            </tr>
            <tr>
                <td>Telephone: <asp:TextBox ID="txtTelephone" runat="server"></asp:TextBox> </td>
                <td></td>
            </tr>
            <tr>
                <td># CarteCredit: <asp:TextBox ID="txtCarteCredit" runat="server"></asp:TextBox> </td>
                <td align="center"><asp:Button ID="cmdContinuer" runat="server" Text="Continuer" 
                        onclick="cmdContinuer_Click" />
                    <br /><br />
                    <asp:Button ID="cmdAnnuler" runat="server" Text="Annuler" 
                        Width="81px" onclick="cmdAnnuler_Click" />
                </td>
            </tr>

        </table>
    </div>
    <div id="bottom" style="position:relative; left:35%; top:90%;">
        <img src="Images/paypal.jpg" alt="paypal.jpg" />
                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
                        EnableScriptGlobalization="true" EnableScriptLocalization="true" />

    </div>
    </form>
</body>
</html>
